<?php

namespace app\index\validate;

use think\Validate;

class CommentBgValidate  extends Validate
{
    protected $rule =   [
        'page' => 'require',
        'limit' => 'require',
        'id' => 'require',
        'content' => 'require',
        'type' => 'require',
    ];

    protected $message = [
        'page.require' => '缺少参数page',
        'limit.require' => '缺少参数limit',
        'id.require' => '缺少参数id',
        'type.require' => '请传入类型',
        'content.require' => '缺少参数content',
    ];

    protected $scene = [
        'list' => ['page', 'limit'],
        'buy' => ['id'],
        'like' => ['id', 'type'],
        'replyList' => ['page', 'limit'],
        'addComment' => ['id', 'content', 'type'],
        'reply' => ['id', 'content'],
    ];
}